home *** CD-ROM | disk | FTP | other *** search
/ Perl Multimedia Cyber Classroom / PERL Multimedia Cyber Classroom (Prentice Hall)(1998).ISO / perlbyex / code.jar / 12ex006.jar / code / ch12 / 12ex006 / 12ex006.pl next >
Perl Script  |  1998-04-01  |  161b  |  6 lines

  1. #!/usr/bin/perl  
  2. $hashref = { Name=>"Woody", Type=>"Cowboy"}; 
  3. print $hashref->{Name}, "\n\n"; # or $$hashref{Name} 
  4. print keys (%$hashref); 
  5. print "\n"; 
  6.